//
//  ImageUtlity.h
//  PixelTest
//
//  Created by Han Guoxiang on 12-7-12.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

//拍照相框大小的枚举
typedef enum {
    PhotoSliderOperation=0,     
    PhotoNegativeOperation=1,
    Photo3X5Operatioin=2,
    Photo4X6Operatiioin=3
}
PhotoOperation;

//用来调节图像颜色的枚举
typedef enum{
    PixelRed=0,
    PixelGreen=1,
    PixelBlue=2,
    PixelBright=3,              //亮度
    PixelContrast=4,            //对比度
} PixelColor;

//处理图片时的临时存放路径
#define kPhotoedImagePath [NSHomeDirectory() stringByAppendingPathComponent:@"photo.png"]//拍完照片后存储的位置
#define kPhotoProcessingImagePath [NSHomeDirectory() stringByAppendingPathComponent:@"photoProcessing.png"]//拍完照片后存储的位置


#import <Foundation/Foundation.h>
#include <OpenGLES/ES1/gl.h>
#include <OpenGLES/ES1/glext.h>

@interface ImageUtlity : NSObject

+(ImageUtlity *)sharedInstance;

-(UIImage *)changedImageFrom:(UIImage *)sourceImage pixel:(PixelColor)pixel value:(CGFloat)value;

- (UIImage *) doUnrotateImage: (UIImage *) image;
@end
